package com.sxjh.entity.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class Finance3CbParam {

  @ApiModelProperty("开始时间")
  @NotNull(message = "开始时间不能为空")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime startDate;

  @ApiModelProperty("结束时间")
  @NotNull(message = "结束时间不能为空")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime endDate;

  @ApiModelProperty("供应商ID")
  @NotNull(message = "供应商ID不能为空")
  private Integer userId;

}
